﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BMSQ.Admin.Accounts.User
{
    public partial class ShowSelf : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ShowInfo(Common.UserInfo.User.UserID);
            }
        }

        private void ShowInfo(string UserID)
        {
            Vincent.Permission.Model.account_userlist model = Vincent.Permission.Functions.Account.GetSingleUser(UserID);  //bll.GetModel(UserID);
            this.lblUserName.Text = model.UserName;
            this.lblTrueName.Text = model.TrueName;
            this.lblSex.Text = model.Sex;
            this.lblPhone.Text = model.Phone;
            this.lblEmail.Text = model.Email;
        }
    }
}